.stock-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stock-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.stock-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.stock-name {
    font-weight: bold;
    color: #333;
}

.stock-price {
    width: 100px;
    text-align: left;
    color: #222;
}

.stock-change {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: white; /* 文字颜色固定为白色 */
    font-size: 12px;
}

.stock-change.up {
    background-color: #f44336; /* 红色背景表示上涨 */
}

.stock-change.down {
    background-color: #4CAF50; /* 绿色背景表示下跌 */
}